
<template>
  <div>
    <p>{{money}}</p>
    <button @click="money++">改值</button>
  </div>
</template>

<script>
import { ref } from 'vue'
export default {
  setup () {
    let money = ref(100)
    let obj = ref({
      name: 'zs',
      age: 18
    })
    money.value++
    console.log(obj.value.name,obj.value.age)
    console.log(money.value)
    return {
      money
    }
  }
}
</script>

<style>

</style>
